package com.xjc.market.sys.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.xjc.infra.util.PageFrom;
/**
 * 主页服务
 * @author liangcz
 * @Date   2018年4月29日
 * @version 1.0
 */
@RestController
@RequestMapping("/sys/service/HomeService")
public class HomeService {
	/**
	 * 跳转主页
	 * @author liangcz
	 * @date   2018年4月29日
	 * @return ModelAndView
	 */
	@RequestMapping("/goHome")
	public ModelAndView goHome(HttpServletRequest request, HttpServletResponse response){
		ModelAndView mav = new ModelAndView();
		mav.setViewName(PageFrom.getView("_admin", "index"));
		return mav;
	}
}
